import request from "@/utils/request";


// 列表查询
export function getRequest(url,query) {
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

// 新增请求
export function addRequest(url,data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

// 修改请求
export function updateRequest(url,data) {
  return request({
    url: url,
    method: 'put',
    data: data
  })
}

// 删除请求
export function delRequest(url,userId) {
  return request({
    url: url + userId,
    method: 'delete'
  })
}



// 普通get请求
export function getRequestOperation(url,data) {
  return request({
    url: url,
    method: 'get',
    params: data
  })
}

// 查询详细
export function getDetails(url,uuid) {
  return request({
    url: url + uuid,
    method: 'get'
  })
}


// 普通post请求
export function postRequestOperation(url,data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}

// 请求字典
export function getDictionaries(val) {
	let data ={}
	data.dictType=val
  return request({
    url: "/company/company/queryDictionary",
    method: 'get',
    params: data
  })
}
